package com.jwsoft.manager.common.enums;
/**
 * @author lvxk
 * @date 2022-03-10
 * @description
 **/
public enum EduFormTypeEnum {
    NURSERYENROLL("1","幼儿园报名"),
    YWENROLL("2","义务教育招生");

    private String type;
    private String name;

    EduFormTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduFormTypeEnum getByType(String type) {

        for (EduFormTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
